<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Untitled Document</title>
</head>

<body>
<?php
session_start();
require("../database.php");
include("header.php");
?>
<link href="../quiz.css" rel="stylesheet" type="text/css">

<form name="form1" method="post" action="#" onSubmit="return check();">
 
  <table width="80%"  border="0" align="center">
  <tr>
  	<td width="24%" height="32"></td>
  </tr>
      <tr>
      <td width="24%" height="32"><div align="left"><strong>Select Subject Name </strong></div></td>
      <td width="1%" height="5">  
      <td width="75%" height="32"><select name="testid" id="testid">
<?php
$rs=mysql_query("Select * from mst_subject order by sub_name",$cn);
	  while($row=mysql_fetch_array($rs))
{
if($row[0]==$testid)
{
echo "<option value='$row[0]' selected>$row[1]</option>";
}
else
{
echo "<option value='$row[0]'>$row[1]</option>";
}
}
?>
      </select>
      
    
    <tr>
      <td height="26"></td>
      <td>&nbsp;</td>
	 
      <td><input type="submit" name="submit" value="Show" > </td>
    </tr>
  </table>
</form>
</body>
</html>
